<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Powered by 9416.cn</title>


<!--#include file="../inc/conn.asp"-->


<script type="text/javascript" src="../ui/jquery.js"></script>
 <link rel="stylesheet" href="../ui/layui/css/layui.css" type="text/css"  />

<script type="text/javascript" src="../ui/layui/layui.js"></script>

<script type="text/javascript" src="../ui/pc.js"></script>

</head>


<body>
<div class="mec_div" style="padding:20px;">
   <%sql="select * from [user] where email='"&request("id")&"'"
  rs.open sql,conn,3,3
  if not rs.eof then
  
email=rs("email")
 uid=rs("id")
 end if
 rs.close
 
  %>
  <%if request("act")="view" then%>
   <table width="100%" class="layui-table">
    	<thead>
    	<tr>
       <th>积分</th>
        <th>说明</th>
        <th>时间</th>
        </tr>
        </thead>
      <%
sql="select * from [user_point] where uid="&uid&" order by id desc"
 rst.open sql,conn,1,1
  do while not rst.eof
 %> <tr>
    <td><%=rst("point")%></td>
    <td><%=rst("bz")%></td>
    <td><%=rst("intime")%></td>
    </tr> 
     <%rst.movenext
		loop
		rst.close%>
       
    </table>
    
   <%end if
   if request("act")="cz" then%>
   
   

 <form id="form1" name="form1" class="layui-form"  method="post" action="?act=add">
  	   <table width="100%" border="0" cellspacing="0" cellpadding="0"  >
    <tr>
      <td width="110" height="50">会员账号：</td>
      <td>
      <%=email%>
  <input name="uid" type="hidden" value="<%=uid%>" />
  </td>
    </tr>
    
    <tr>
      <td width="110" height="50">积分：</td>
      <td><input name="point" type="text" class="layui-input"  style="width:80px"  lay-verify="required" value="" placeholder="" /></td>
    </tr>
    
    <tr>
      <td height="50">说明：</td>
      <td><input name="bz" type="text" class="layui-input" style="width:200px"   placeholder="输入积分说明"/></td>
    </tr>
    
       
        <tr>
          <td height="50"></td>
          <td><input type="submit" class="layui-btn" value="保存资料" lay-submit="lay-submit" /></td>
         </tr>
       </table>
 
  </form>
    
 <%end if%>
 
	
</div> 
 

<%
 

  if request("act")="add" then
  
    jianbook.demomsg()
  
 sql="select * from [user_point]"
  rs.open sql,conn,3,3
  
  rs.addnew

rs("item")="other"
rs("uid")=request("uid")
rs("point")=request("point")
rs("bz")=request("bz")

rs.update
rs.close
response.Write"<script>parent.location.reload();</script>"
end if
	

 
 
%>

		

</body>

</html>
